<div class="hd-20160421">
    <div class="hd-container">
      <div class="hd-top-banner">
        <div class="banner w1200">
            <p class="top-banner-text">Entrar a <a href="#" target="__blank">Geekvida&nbsp;&gt;</a><br>Promoción：22-30 de abril</p>
        </div>
      </div>
      <div class="hd-main-content">
        <div style="height:50px;"></div>
        <div class="hd-control-block w1200">
          <ul class="block-list clearfloat">
            <li>
               <a href="#display1">Móviles y tabletas</a>
               <i class="ico ico1"></i>
            </li>
            <li><a href="#display2">3.99€ Accesorios XIAOMI</a></li>
            <li><a href="#display3">Pulseras &Auriculares</a></li>
            <li><a href="#display4">Cámara de acción / altavoz</a></li>
            <li>
              <a href="#display5">Gadgets para coches /<br> powerbank</a>
              <i class="ico ico2"></i>
            </li>
          </ul>
        </div>
  
        <div class="hd-display-block w1200" id="display1">
          <h2>MÓVILES Y TABLETAS</h2>
          <div class="hd-product-list">
            <ul class="lis1 lists-3 clearfloat">
            </ul>
          </div>
          
          <div class="hd-product-list">
            <ul class="lis2 clearfloat">
              <li>
                <a href="#"><img src="./images/201604218.jpg" alt="Xiaomi Mi4 3GB 16GB Blanco" style="height: 578px;width: 595px;"></a>
              </li>
              <li>
                <a href="#"><img src="./images/201604219.jpg" alt="Xiaomi Redmi 2 Pro 2GB 16GB Negro"></a>
              </li>
              <li>
                <a href="#"><img src="./images/201604220.jpg" alt="Xiaomi Redmi note 3 2GB 16GB Gris"></a>
              </li>
              <li>
                <a href="#"><img src="./images/201604221.jpg" alt="Xiaomi Redmi note 3 3GB 32GB Dorado"></a>
              </li>
            </ul>
          </div>
        </div>
  
        <div class="hd-display-block w1200" id="display2">
          <h3>3.99€ Accesorios Xiaomi</h3>
          <div class="hd-product-list">
            <ul class="lis3 lists-5_2"></ul>
          </div>
        </div>
  
        <div class="hd-display-block" id="display3">
          <h3 class="w1200">Pulseras & Auriculares</h3>
          <div class="hd-product-list w1412">
            <ul class="lis4 lists-4 clearfloat"></ul>
          </div>
        </div>
        
        <div class="hd-display-block" id="display4">
          <h3 class="w1200">Cámara De Acción/ Altavoz</h3>
          <div class="hd-product-list w1412">
            <ul class="lis4 lists-4 clearfloat"> </ul>
          </div>
        </div>
  
        <div class="hd-display-block" id="display5">
          <h3 class="w1200">Gadgets para carro/Powerbank</h3>
          <div class="hd-product-list w1412">
            <ul class="lis4 lists-5 clearfloat"></ul>
          </div>
        </div>
      </div>
    </div>
    <style type="text/css">
      .w1412 {width: 1120px;margin: 10px auto;}
      .clear {clear: both;}
      .hd-20160421 {background: url(./images/201604211.jpg)repeat;}
      .hd-top-banner {background: url(./images/201604222.jpg)no-repeat center top;}
      .hd-top-banner .banner {position: relative;height: 441px;}
      .hd-top-banner .top-banner-text {position: absolute; top: 15px; right: 0; font-size: 18px; color: #a4160c; line-height: 22px;text-align: right;}
      .top-banner-text a {color: #fff100;}
      .hd-main-content {background: url(./images/201604223.jpg)no-repeat center top;}
      .hd-product-info {padding: 10px 15px;}
      .hd-product-info .info {font-size: 28px; color: #fff; line-height: 35px; margin-bottom: 10px;}
      .hd-product-info .price { font-size: 40px; color: #f73c18; font-weight: bold;}
      .hd-product-info .price .small {font-size: 30px;}
      .hd-product-info .price .old-price {font-size: 18px; color: #fff; margin-right: 10px; text-decoration: line-through; font-weight: normal;}
      .hd-control-block.fixed {width: 100%;position: fixed;top: 0;left: 0;z-index: 99999;margin-top: 0;background: #ff5206;}
      .block-list li {height: 66px; background: #feedcf; float: left; margin-right: 1px; text-align: center; position: relative;width:-webkit-calc((100% - 4px)/5);width:-ms-calc((100% - 4px)/5);width:calc((100% - 4px)/5);width:-moz-calc((100% - 4px)/5);width:-o-calc((100% - 4px)/5);cursor: pointer;}
      .block-list li.current a, .block-list li:hover a {color:#fff;background: #37BCB5;}
      .block-list li a {font-weight: bold; font-size: 17px; color: #ff3300; line-height: 66px;display: block;height: 66px;}
      .block-list li:last-child {margin-right: 0px;}
      .block-list li:last-child a{ line-height: 22px;padding-top: 8px; height: 58px;}
      .block-list li .ico {position: absolute; top: -1px; width: 0; height: 0; border-top: 34px solid transparent;border-bottom: 34px solid transparent;}
      .block-list li .ico1 {left: -34px; border-right: 34px solid #FEEDCF; }
      .block-list li .ico2 {right: -34px; border-left: 34px solid #FEEDCF; }
      .hd-display-block {margin-top: 20px;}
      .hd-display-block h2 {font-size: 30px; font-weight: lighter; color: #fff; text-align: center; font-family: 'MyriadSetPro-Thin'; height: 80px; line-height: 80px;}
      .hd-product-list .lis1 li {margin:0 8px 8px 0;background: rgba(255, 241, 0, 0.5);text-align: center;width:393px;height: 590px;}
      .hd-product-list .lis1 li:nth-child(3n +3){margin-right: 0;}
      .hd-product-list .lis2 li {background: #fff;}
      .hd-product-list .lis2 li:hover img {opacity: 0.7;}
      .hd-product-list .lis2 li img {display: block;}
      .hd-product-list ul li {float: left;margin:0 5px 5px 0; position: relative;}
      .hd-product-list li .btn-buy { position: absolute; top: 50%; left: 50%; background: rgba(0, 0, 0, 0.6); display: block; width: 210px; height: 40px; text-align: center; line-height: 40px; margin: -20px 0 0 -105px; font-size: 22px; color: #fff;display: none;}
       .hd-product-list li:hover .btn-buy {display: block;}
      #display2 {height:820px;background: url(./images/201604224.png)no-repeat;}
      #display2 h3 {font-size: 36px; color: #fff100; font-weight: bold; text-align: center; line-height: 65px;}
      #display2 .hd-product-list { margin: 100px auto 0; width: 1050px;text-align: center;}
      #display2 .lis3 li { width: 350px;text-align: center;margin: 0 0 80px 0; float:none;display: inline-block;}
      .lis3 li img, .lis4 li img {-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
      .lis3 li .text {font-size: 15px; color: #fff; line-height: 22px; margin: 15px auto;height: 44px;width:78%}
      .lis3 li:hover .btn-add {background: #D25F20;}
      .lis3 li:hover img, .lis4 li:hover img {transform: translateY(-10px);-webkit-transform: translateY(-10px);-o-transform: translateY(-10px);-ms-transform: translateY(-10px);-moz-transform: translateY(-10px);}
      .lis3 li .btn-add { font-size: 15px; color: #fff; padding: 8px 30px; background: #ff6e1f;}
      .hd-display-block h3.w1200 {font-size: 48px;text-align: center;background: url(./images/201604230.png)no-repeat;line-height: 160px;color:#f73c18;margin-top: 30px;}
      .hd-display-block .lis4 li {margin-bottom: 25px;}
      .hd-display-block .lis4 img {width: 555px;height: 243px;}
    </style>
  
    <script type="text/javascript">
      (function($){
            var str1 = '', str2 = '', str3 = '',str4 = '';
            var mgTopArray = ["0","140","-128","15","-128"];
            for(var i = 0; i < 5; i++){
                str1 +=  `<li style="margin-top: ${mgTopArray[i]}px;">
                    <a href="#"><img src="./images/${i % 2 == 0?'201604239':'201604240'}.png" alt="Xiaomi Power Bank 20000mAh Dual USB Blanco"></a>
                </li>`;
                str3 += `<li>
                  <a href="#"><img src="./images/201604228.png" alt="Xiaomi Anillo anti-caída rotación 360° soporte del móvil Rosado"></a>
                  <p class="text">Xiaomi Anillo anti-caída rotación 360° soporte del móvil Rosado</p>
                  <a class="btn-add" href="#">Comprar&nbsp;&gt;&gt;</a>
                </li>`;
            }
           $(".lists-5").append(str1);
           $(".lists-5_2").append(str3);
           for(var i = 0; i < 4; i++){
                str2 +=  `<li>
                    <a href="#"><img src="./images/${i % 2 == 0?'201604239':'201604240'}.png" alt="Xiaomi Power Bank 20000mAh Dual USB Blanco"></a>
                </li>`;
            }
           $(".lists-4").append(str2);
           for(var i = 0; i < 3; i++){
             str4 += `<li>
                <div class="hd-product-info">
                  <p class="info">Xiaomi Redmi Note 3 Pro 2GB 16GB Gris</p>
                  <p class="price">209<span class="small">.99€</span></p>
                </div>
                <a href="#"><img src="./images/201604215.png" alt="Xiaomi Redmi Note 3 Pro 2GB 16GB Gris"></a>
                <a class="btn-buy" href="#">Comprar&nbsp;&gt;&gt;</a>
              </li>`;
           }
           $(".lists-3").append(str4);
          var sideNav = $(".hd-control-block");
          $(window).on("scroll",function(){
            var sideNavShow = $("#display1").offset().top - 70;
            var modTop = [];
            if($(this).scrollTop()>=sideNavShow){
  
              sideNav.addClass("fixed");
            }
            else{
              sideNav.removeClass("fixed");
              sideNav.find("li").removeClass("current");
            }
  
            /*滚动到哪个地方，相应的对方变换样式*/
            for (var i = 0; i < $(".hd-control-block .block-list li").length; i++) {
              modTop[i] = $($(".hd-control-block .block-list li a").eq(i).attr("href")).offset().top -75;
  
              if ($(window).scrollTop() >= modTop[i]) {
                $(".hd-control-block .block-list li").removeClass('current').eq(i).addClass('current');
              };
            };
          });
          
          sideNav.find("li").find("a").on("click",function(e){
            e.preventDefault();
            var aHash = this.hash;
            $("html,body").animate({
              scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top -70
            });
          });
      })(jQuery);
    </script>
  </div>